package com.healthcloud.service.PatientRecord.impl;

import com.healthcloud.dao.PatientRecord.MedicalTestDao;
import com.healthcloud.entity.PatientRecord.MedicalTestEntity;
import com.healthcloud.service.PatientRecord.MedicalTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("medicalTestService")
@Transactional
public class MedicalTestServiceImpl implements MedicalTestService {
	@Autowired
	private MedicalTestDao medicalTestDao;
	
	@Override
	public MedicalTestEntity queryObject(Integer id){
		return medicalTestDao.queryObject(id);
	}
	
	@Override
	public void save(MedicalTestEntity medicalTest){
		medicalTestDao.save(medicalTest);
	}
	
	@Override
	public void update(MedicalTestEntity medicalTest){
		medicalTestDao.update(medicalTest);
	}
	
	@Override
	public void delete(Integer id){
		medicalTestDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		medicalTestDao.deleteBatch(ids);
	}

	@Override
	public List<MedicalTestEntity> queryByIdCard(MedicalTestEntity entity, PageParam pageParam)
	{
		return medicalTestDao.queryByIdCard(entity, pageParam);
	}
	@Override
	public int countByIdCard(MedicalTestEntity entity) {
		return medicalTestDao.countByIdCard(entity);
	}
}
